package com.kaifamiao.month05.day10;

import java.io.IOException;
import java.net.Socket;
import java.util.UUID;

public class Client3 {

    public static void main(String[] args) throws IOException {
        Socket client = new Socket("localhost",9999);
        System.out.println(UUID.randomUUID().toString() + "已经登录！");
        // 将服务端的内容读到客户端
        byte[] result = client.getInputStream().readAllBytes();
        System.out.println(new String(result));
    }
}


